package com.baizhi.api.service.impl;

import com.baizhi.api.service.CategoryService;
import com.baizhi.dao.PmsCategoryMapper;
import com.baizhi.entity.PmsCategory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CategoryServiceImpl implements CategoryService {
    @Autowired
    private PmsCategoryMapper categoryMapper;

    /**
     * 点击一级分类会展示 一级分类下的二级分类和三级分类
     */
    @Override
    public List<PmsCategory> getCategoryById(Long categoryId) {
        return categoryMapper.selectList(null);
    }
}
